package com.womiuge.tuomin.entity;

import com.womiuge.tuomin.annotation.Sensitive;
import com.womiuge.tuomin.enums.SensitiveStrategy;
import lombok.Data;

import java.io.Serializable;

/**
 * @author: t-zhijiang.zhao
 * @date: 2024/5/14 11:21
 */
@Data
public class Person implements Serializable {
    private static final long serialVersionUID = 1L;


    /**
     * 真实姓名
     */
    @Sensitive(strategy = SensitiveStrategy.USERNAME)
    private String realName;
    /**
     * 地址
     */
    @Sensitive(strategy = SensitiveStrategy.ADDRESS)
    private String address;
    /**
     * 电话号码
     */
    @Sensitive(strategy = SensitiveStrategy.PHONE)
    private String phoneNumber;
    /**
     * 身份证号码
     */
    @Sensitive(strategy = SensitiveStrategy.ID_CARD)
    private String idCard;
}
